package login;

import java.util.Scanner;

/**
 * @author:WIN10
 * @date:2022/1/18
 * @describe:
 */
public class Client {

    public static void main(String[] args) {
        UserInfo user = new UserInfo();
        Scanner input = new Scanner(System.in);
        System.out.println("请输入用户名: ");
        String inputName = input.next();
        System.out.println("请输入密码：");
        String inputPwd = input.next();
        if (inputName.equals(user.getAccount()) && inputPwd.equalsIgnoreCase(user.getPassword())) {
            System.out.println("账号密码正确，登录成功");
        } else   {
            System.out.println("账号或者密码错误");
        }
    }
}
